import Login from "./Login";
import Register from "./Register";
import React from "react";

class Index extends React.Component {
    constructor(){
        super();
        this.state = {
            formType: "login"
        };
    }
    onFinish = values => {
        console.log('Received values of form: ', values);
    };
    render() {
        return (
            <div>
                {this.state.formType === "login" ? <Login/> : <Register/>}
            </div>
        )
    }
}

export default Index;